import request from '@/utils/request'

// 查询工资异动审批列表
export function listAbnormalMoney(query) {
  return request({
    url: '/hr/abnormalMoney/list',
    method: 'get',
    params: query
  })
}

// 查询工资异动审批详细
export function getAbnormalMoney(id) {
  return request({
    url: '/hr/abnormalMoney/' + id,
    method: 'get'
  })
}

// 新增工资异动审批
export function addAbnormalMoney(data) {
  return request({
    url: '/hr/abnormalMoney',
    method: 'post',
    data: data
  })
}

// 修改工资异动审批
export function updateAbnormalMoney(data) {
  return request({
    url: '/hr/abnormalMoney',
    method: 'put',
    data: data
  })
}

// 删除工资异动审批
export function delAbnormalMoney(id) {
  return request({
    url: '/hr/abnormalMoney/' + id,
    method: 'delete'
  })
}
